<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<title>客户历史详情</title>
<link href="css/css-main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.ys-shuzi {
	color: #F00;
}
</style>
</head>
<body>
<div class="main-con">
      <div class="main-bar"><span class="bar-position">当前位置：<a href="#">会员管理</a> &gt;&gt; 客史管理&gt;&gt; 客户历史详情</span></div>
      
    <div class="cont_right_cont">
    <div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" align="right" valign="middle"><input name="button5" type="button" class="btn-Yes" id="button5" onclick="javascript:history.back();" value="返回"/></td>
          </tr>
        </table>
    </div>
      <fieldset>
      <legend>
      重点客户</legend>
      <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="17%" align="right">姓名：</td>
            <td width="20%"><s:property value="customerDetail.custName" /></td>
            <td width="17%" align="right">会员等级：</td>
            <td width="46%"><s:property value="customerDetail.custLevel" /></td>
          </tr>
          <tr>
          	<td align="right">卡号：</td>
            <td><s:property value="customerDetail.cardNo" /></td>
            <td align="right">消费次数：</td>
            <td><span class="ys-shuzi"><s:property value="customerDetail.num" /></span>次</td>
          </tr>
          <tr>
            <td align="right">证件类型：</td>
            <td>
             <s:if test="customerDetail.typeID ==1">身份证
            </s:if>
            <s:elseif test="customerDetail.typeID ==2">军人证
            </s:elseif>
            <s:else>其他证件</s:else>
            </td>
            <td align="right">职业背景：</td>
            <td><s:property value="customerDetail.profession" /></td>
          </tr>
          <tr>
            <td align="right">证件号码：</td>
            <td><s:property value="customerDetail.numberID" /></td>
            <td align="right">最近消费时间：</td>
            <td rowspan="2">
            <s:if test=" customerDetail.time.size == 0">
						</s:if>
						<!-- 存在记录 -->
						<s:if test=" customerDetail.time.size > 0">
							<!--显示List记录！-->
							<s:iterator value="customerDetail.time" id="time">
							<s:property value="time" />
           					 <br>
							</s:iterator>
					    </s:if>
            </td>
          </tr>
          <tr>
            <td align="right">电话：</td>
            <td><s:property value="customerDetail.tel" /></td>
            <td>&nbsp;</td>
          </tr>
        </table>
        <hr>
        <fieldset>
          <legend>服务偏好</legend>
          <div>
            <div class="cont_right_cont">
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="datalist">
                <tr>
                  <th width="31%">&nbsp;</th>
                  <th width="41%">推荐</th>
                  <th width="28%">历史</th>
                </tr>
                <tr>
                  <td>预定包间</td>
                  <td><s:property value="customerDetail.roomId" /></td>
                  <td rowspan="4" >
                   <s:if test=" customerDetail.historyRoom.size == 0">
						</s:if>
						<!-- 存在记录 -->
						<s:if test=" customerDetail.historyRoom.size > 0">
							<!--显示List记录！-->
							<s:iterator value="customerDetail.historyRoom" id="room">
							<s:property value="room" />
           					 <br>
							</s:iterator>
					    </s:if>
                  </td>
                </tr>
                <tr>
                  <td>预定时长</td>
                  <td><s:property value="customerDetail.longestRetention" />小时</td>
                </tr>
                <tr>
                  <td>开始时间</td>
                  <td><s:property value="customerDetail.startTime" /></td>
                </tr>
                <tr>
                  <td>结束时间</td>
                  <td><s:property value="customerDetail.endTime" /></td>
                </tr>
              </table>
            </div>
          </div>
        </fieldset>
      </div>
      </fieldset>
    </div>
</div>

</body>
</html>
